<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JavaBean解决乱码问题</title>
</head>
<body>
	<jsp:useBean id="news" class="com.jsp.study.bean.News"></jsp:useBean>
	<jsp:useBean id="encoding" class="com.jsp.study.bean.CharactorEncoding"></jsp:useBean>
	<jsp:setProperty property="*" name="news"/>
	<div align="center">
		<div id="container">
			<div id="title"><%= encoding.toString(news.getTitle()) %></div>
			<hr>
			<div id="content"><%= encoding.toString(news.getContent()) %></div>
		</div>
	</div>
</body>
</html>